import java.util.Arrays;

public class ComputeScore {

    public static void compute(float[] args) {
        if (args.length <= 2) {
            System.out.println("Invalid number of arguments");;
        }
        Arrays.sort(args);
        float sum = 0;
        for (int i = 1; i < args.length-1; i++) {
            sum = sum + args[i] ;
        }
        float avf =  sum/(args.length-2);
        System.out.println("The average score is " + avf);
    }
}
